# -*- encoding:utf-8 -*-
from test.fetchertest.TestFetcher import TestFetcher
import time
__author__ = 'shudong.msd'

def f1():
    ll = [i for i in xrange(1,300)]
    tf = TestFetcher(50,3)
    for i in ll:
        tf.push(i)

    while tf.task_left()>0:
        tf.pop()
        print tf.task_left()

def f2():
    f1()
    while True:
        time.sleep(3)

f2()